package felix.things.router.opc.rpc;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.context.ApplicationEvent;

import java.util.HashMap;

/**
 * @author Felix
 * @date 2019/11/11
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public class RpcEvent extends ApplicationEvent {
    private String applicationName;
    private String deviceName;
    private HashMap<String, Object> command;

    public RpcEvent(Object source, String applicationName, String deviceName, HashMap<String, Object> command) {
        super(source);
        this.applicationName = applicationName;
        this.deviceName = deviceName;
        this.command = command;
    }
}
